package com.tongji.diy.controller
{
	/**
	 * 
	 * @author xxj
	 * 
	 */
	
	import com.tongji.diy.event.UploadHoleEvent;
	import com.tongji.diy.model.RoomDataModel;
	
	import org.robotlegs.mvcs.Command;
	
	public class UploadHoleCommand extends Command
	{
		[Inject]
		public var event:UploadHoleEvent;
		
		[Inject]
		public var model:RoomDataModel;
		
		override public function execute():void
		{
			model.addHole(event.position);
		}
	}
}